#include "mts_manager.h"

#include <QString>
#include <QtGui>
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));

    mts_manager w;
    w.show();

    QFile rc("./mts_manager.css");
    if (!rc.open(QIODevice::ReadOnly))
    {
    	rc.setFileName(QString::fromUtf8(":/style/mts_manager.css"));
    	rc.open(QIODevice::ReadOnly);
    }
    if (rc.isOpen())
    {
    	QTextStream ts( &rc );
    	QString styleSheet = ts.readAll();
    	a.setStyleSheet( styleSheet );

    	rc.close();
    }

    return a.exec();
}
